#ifndef DATAPROCESSING_H
#define DATAPROCESSING_H

#define numReading 5

#include <WProgram.h>

class DataProcessing {
  private:
  boolean condition;
  int index;
  int total;
  int preData;
  int nowData;
  int readings[numReading];
  unsigned int preTime;
  unsigned int nowTime;

  public:
  DataProcessing();
  ~DataProcessing();
  void smoothData(int t);
  int getNowData();
  int getPreData();
  void setPreTime();
  boolean getCondition();
  void setCondition(boolean);
  void setPreData();
  boolean compareTime(int t);
  boolean compareData(int t);
};

#endif
